<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>if语句</title>
</head>
<body>
{% if age >18 %}
    <div>你已成年</div>
{% elif age==18 %}
    <div>你刚成年</div>
{% elif age<18 %}
    <div>你未成年</div>
{% endif %}
</body>
</html>